﻿Imports System
Imports System.Data
Imports System.Data.OleDb

'/ <summary>
'/ The OleDbDataAccessLayer contains the data access layer for OleDb data provider. 
'/ This class implements the abstract methods in the DataAccessLayerBaseClass class.
'/ </summary>
Public Class OleDbDataAccessLayer
    Inherits DataAccessLayerBaseClass

    ' Provide class constructors
    Public Sub New()
    End Sub

    Public Sub New(ByVal connectionString As String)
        Me.ConnectionString = connectionString
    End Sub

    ' DataAccessLayerBaseClass Members
    Public Overrides Function GetDataProviderConnection() As IDbConnection
        Return New OleDbConnection()
    End Function

    Public Overrides Function GeDataProviderCommand() As IDbCommand
        Return New OleDbCommand()
    End Function


    Public Overrides Function GetDataProviderDataAdapter() As IDbDataAdapter
        Return New OleDbDataAdapter()
    End Function
End Class
